import request from "../request.js"
import { currentUrl } from "../urls.js";
import { currentDetailsUrl } from "../urls.js";

export default{
	//根据页码获取活期信息
	getCurrentByPage(page){
		return request({
			url:currentUrl,
			method:'GET',
			data:{
				page
			}
		})
	},
	//根据id获取基金详情
	getListById(data){
		return request({
			url:currentDetailsUrl,
			method:'POST',
			data
		})
	},
	//根据code获取基金详情
	getCurrentByCode(data){
		return request({
			url:currentDetailsUrl,
			method:'POST',
			data
		})
	}
}